package com.yshkj.payment.repository;

import com.yshkj.payment.entity.UserAccount;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by 唐旭 on 2016/9/7.
 */
public interface UserAccountRepository extends JpaRepository<UserAccount, String> {

    @Cacheable(value = "UserAccount", key = "#root.args[0]")
    UserAccount findTop1ByUsername(String username);
}
